]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st/icon: Use existing method for getting gicon property
authorJonas Dreßler <verdre@v0yd.nl>
Thu, 21 Nov 2019 10:19:27 +0000 (17:19 +0700)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 13 Jan 2020 13:44:08 +0000 (14:44 +0100)
We have an existing method for this, let's use it instead of accessing
the private property here.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/888

src/st/st-icon.c

index 0f9aa43d22aa6dc1c1dab815d54ede1103d14846..4a92e9e5c4bf870fb2d5dc48ab1c03d6d477e9a2 100644 (file)
@@ -115,7 +115,7 @@ st_icon_get_property (GObject    *gobject,
   switch (prop_id)
     {
     case PROP_GICON:
-      g_value_set_object (value, icon->priv->gicon);
+      g_value_set_object (value, st_icon_get_gicon (icon));
       break;
 
     case PROP_ICON_NAME: